<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
修改

<form action="edit">
    <input type="hidden" name="id" th:value="${stu.id}">
    姓名：<input type="text" name="name" th:value="${stu.name}">


    <br>
    年级：
    <select name="gid">
        <option th:each="g:${gradeList}" th:value="${g.gid}" th:text="${g.gname}">name</option>
    </select>
    <br>
    班级：
    <select name="cid">
        <option th:each="g:${classList}" th:value="${g.cid}" th:text="${g.cname}">name</option>
    </select>
    <br>
    <button type="submit">提交</button>
</form>
</body>
</html>